// message.js
// Update unread message count.

!chrome.extension.inIncognitoContext && //Not for incognito windows
document.documentElement && 
document.documentElement.tagName.toLowerCase() == "html" && 
document.getElementById("menu_user") && (function()
{
var msgnum = document.getElementById("msgnum_show");
var user = document.getElementById("td_userinfo_more");
(chrome.extension.sendMessage || chrome.extension.sendRequest)({
	name: "updateMessageCount", 
	value: (user ? (msgnum ? (msgnum.innerText || msgnum.textContent) : "") : "?"), 
	source: document.documentURI, //DEBUG
});
})();

